//const config = require("../config.js").default as Config;
import config from "../config.mjs";

export interface Config {
    plmUrl: string,
}

// TODO: 校验配置项是否正确
if (!config || !config.plmUrl)
    throw new Error("plmUrl is required in config.js");



export function getConfig(): Config {
    return config;
}